<?php
namespace app\modules\frontend\models;
use common\component\tool\Tool;
use app\models\Basic;

use Yii;
use yii\helpers\Html;

class TagsRelationships extends Basic
{
    
    public static function tableName()
    {
        return '{{%tags_relationships}}';
    }


    /*关联查询 标签*/
    public function getTag()
    {
        $tag = $this->hasOne(Tags::className(), ['tid' => 'tid'])->select(['tid', 'tag_name', 'heat']);
        return $tag;
    }
    
}